<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C# API Reference for Windows: JCSDK.JCGroup.JCGroup类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C# API Reference for Windows
   &#160;<span id="projectnumber">2.3.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_j_c_s_d_k.html">JCSDK</a></li><li class="navelem"><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_group.html">JCGroup</a></li><li class="navelem"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCSDK.JCGroup.JCGroup类 参考<div class="ingroups"><a class="el" href="group___xE7_xBE_xA4_xE7_xBB_x84_xE6_xA8_xA1_xE5_x9D_x97.html">群组模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad7e9fc54439fbb45ef3fdb717871a4d8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#ad7e9fc54439fbb45ef3fdb717871a4d8">fetchGroups</a> (long updateTime)</td></tr>
<tr class="separator:ad7e9fc54439fbb45ef3fdb717871a4d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8def08f834d98ea580e7de2cd32be56"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#ac8def08f834d98ea580e7de2cd32be56">fetchGroupInfo</a> (string groupId, long updateTime)</td></tr>
<tr class="separator:ac8def08f834d98ea580e7de2cd32be56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00441757f70d788a1b249d8b0678cfe3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a00441757f70d788a1b249d8b0678cfe3">createGroup</a> (List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a> &gt; members, string groupName)</td></tr>
<tr class="separator:a00441757f70d788a1b249d8b0678cfe3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08ed7c4b58fe0cb44d92f927fc94fe94"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a08ed7c4b58fe0cb44d92f927fc94fe94">updateGroup</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_item.html">JCGroupItem</a> groupItem)</td></tr>
<tr class="separator:a08ed7c4b58fe0cb44d92f927fc94fe94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b4509723874f0e1268a29eb13031556"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a5b4509723874f0e1268a29eb13031556">dissolve</a> (string groupId)</td></tr>
<tr class="separator:a5b4509723874f0e1268a29eb13031556"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cd6f8e88ac5acb99e076545ea28e7fe"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a7cd6f8e88ac5acb99e076545ea28e7fe">leave</a> (string groupId)</td></tr>
<tr class="separator:a7cd6f8e88ac5acb99e076545ea28e7fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f38744845924d9a32700c1526bc63e0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a2f38744845924d9a32700c1526bc63e0">updateSelfInfo</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a> selfInfo)</td></tr>
<tr class="separator:a2f38744845924d9a32700c1526bc63e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dc2bb38b3a9471f7835b05b8bdac30a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a2dc2bb38b3a9471f7835b05b8bdac30a">dealMembers</a> (string groupId, List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a> &gt; members)</td></tr>
<tr class="separator:a2dc2bb38b3a9471f7835b05b8bdac30a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a9ad47e94d528b9035006bb93919adb67"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a9ad47e94d528b9035006bb93919adb67">create</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html">JCClient.JCClient</a> client, <a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html">JCGroupCallback</a> callback)</td></tr>
<tr class="separator:a9ad47e94d528b9035006bb93919adb67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5058f0cfe33b300ce90c1719ef2a6e6d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a5058f0cfe33b300ce90c1719ef2a6e6d">destroy</a> ()</td></tr>
<tr class="separator:a5058f0cfe33b300ce90c1719ef2a6e6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>群操作类 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a9ad47e94d528b9035006bb93919adb67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ad47e94d528b9035006bb93919adb67">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a> JCSDK.JCGroup.JCGroup.create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html">JCClient.JCClient</a>&#160;</td>
          <td class="paramname"><em>client</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html">JCGroupCallback</a>&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a> 对象</p>
<p><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="section note"><dt>注解</dt><dd><ul>
<li>调用此方法创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a> 对象后，期间没有调用过 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a5058f0cfe33b300ce90c1719ef2a6e6d">destroy</a> 方法销毁对象，然后又重复调用此方法，会直接返回第一次创建的 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a> 对象</li>
<li>调用此方法前确保 <a class="el" href="namespace_j_c_s_d_k_1_1_j_c_client.html">JCClient</a> 已完成初始化，即 <a class="el" href="class_j_c_s_d_k_1_1_j_c_client_1_1_j_c_client.html#a8b114554ece8a6e4e03dd8f91812b802">state</a> 状态值不等于 <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga2aa0686490aced8d8c24d3318a989af8">NotInit</a></li>
</ul>
</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">client</td><td><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_client.html">JCClient</a> 对象 </td></tr>
    <tr><td class="paramname">callback</td><td><a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html">JCGroupCallback</a> 回调接口，用于回调相关通知 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a> 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">client、callback 任意一个参数传空就会出现调用异常</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a00441757f70d788a1b249d8b0678cfe3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00441757f70d788a1b249d8b0678cfe3">&#9670;&nbsp;</a></span>createGroup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCGroup.JCGroup.createGroup </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a> &gt;&#160;</td>
          <td class="paramname"><em>members</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>groupName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建群</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">members</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a> 列表 </td></tr>
    <tr><td class="paramname">groupName</td><td>群名称 </td></tr>
    <tr><td class="paramname">type</td><td>群类型：<ul>
<li>JCGroupTypeDiscussion : 讨论组</li>
<li>JCGroupTypeNormal : 普通群 </li>
</ul>
</td></tr>
    <tr><td class="paramname">customProperties</td><td>自定义属性 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html#afb2cbc9ee132fe8313c7b27ed8c1e336">onCreateGroup</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a2dc2bb38b3a9471f7835b05b8bdac30a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2dc2bb38b3a9471f7835b05b8bdac30a">&#9670;&nbsp;</a></span>dealMembers()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCGroup.JCGroup.dealMembers </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>groupId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a> &gt;&#160;</td>
          <td class="paramname"><em>members</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>操作成员</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
    <tr><td class="paramname">members</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a> 对象列表，通过 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_item.html#adcfe66bcc4e8de8f7e850de3fb80060c">changeState</a> 值来表明增加，更新，删除成员操作 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html#ab28521927e4cd15c954f548bc3f6df33">onDealMembers</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a5058f0cfe33b300ce90c1719ef2a6e6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5058f0cfe33b300ce90c1719ef2a6e6d">&#9670;&nbsp;</a></span>destroy()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void JCSDK.JCGroup.JCGroup.destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a> 对象</p>
<dl class="section note"><dt>注解</dt><dd>此方法为异步调用，所以在调用此方法后不能马上调用 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html#a9ad47e94d528b9035006bb93919adb67">create</a> 方法去重新创建 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group.html">JCGroup</a> 对象 </dd></dl>

</div>
</div>
<a id="a5b4509723874f0e1268a29eb13031556"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b4509723874f0e1268a29eb13031556">&#9670;&nbsp;</a></span>dissolve()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCGroup.JCGroup.dissolve </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>groupId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>解散群组</p>
<dl class="section note"><dt>注解</dt><dd>群拥有者才能解散群组</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html#a6cf29e9330aa917be6b07093d851c2c4">onDissolve</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ac8def08f834d98ea580e7de2cd32be56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8def08f834d98ea580e7de2cd32be56">&#9670;&nbsp;</a></span>fetchGroupInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCGroup.JCGroup.fetchGroupInfo </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>groupId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>updateTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>刷新群组信息</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
    <tr><td class="paramname">updateTime</td><td>最新一次记录的该群服务器更新时间 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html#af02518fd608699e7bb60dc3f01853028">onFetchGroupInfo</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ad7e9fc54439fbb45ef3fdb717871a4d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7e9fc54439fbb45ef3fdb717871a4d8">&#9670;&nbsp;</a></span>fetchGroups()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCGroup.JCGroup.fetchGroups </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>updateTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取当前用户加入的群列表</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">updateTime</td><td>最新一次记录的群列表服务器更新时间 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html#aa092cadac209f16eae90b8d7caa0b01c">onFetchGroups</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a7cd6f8e88ac5acb99e076545ea28e7fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cd6f8e88ac5acb99e076545ea28e7fe">&#9670;&nbsp;</a></span>leave()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCGroup.JCGroup.leave </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>groupId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>离开群组</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupId</td><td>群标识 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="">onLeave</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a08ed7c4b58fe0cb44d92f927fc94fe94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08ed7c4b58fe0cb44d92f927fc94fe94">&#9670;&nbsp;</a></span>updateGroup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCGroup.JCGroup.updateGroup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_item.html">JCGroupItem</a>&#160;</td>
          <td class="paramname"><em>groupItem</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更新群</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">groupItem</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_item.html">JCGroupItem</a> 对象，其中 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_item.html">JCGroupItem</a> 中 <a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_item.html#adcfe66bcc4e8de8f7e850de3fb80060c">changeState</a> 值不影响具体操作 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过<a class="el" href="interface_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_callback.html#a53d08bc0a636f7ae2ef0f2349e421ce4">onUpdateGroup</a> 回调</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a2f38744845924d9a32700c1526bc63e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f38744845924d9a32700c1526bc63e0">&#9670;&nbsp;</a></span>updateSelfInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int JCSDK.JCGroup.JCGroup.updateSelfInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a>&#160;</td>
          <td class="paramname"><em>selfInfo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更新昵称</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">selfInfo</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_group_1_1_j_c_group_member.html">JCGroupMember</a> 对象，请传入 groupId，displayName，memberType </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>操作Id </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDK/JCSDK/JCGroup/JCGroup.cs</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
